package com.sven.helloapi;

import org.springframework.web.bind.annotation.*;

public interface HelloServiceAPI {

    // @GetMapping("/hello6")
    @RequestMapping(value = "/hello/hello6", method = RequestMethod.GET)
    String hello6(@RequestParam(value = "name") String name);

    @RequestMapping(value = "/hello/hello7", method = RequestMethod.GET)
    User hello7(@RequestHeader("name") String name, @RequestHeader("age") Integer age);

    @RequestMapping(value = "/hello/hello8", method = RequestMethod.POST)
    String hello8(@RequestBody User user);

}
